<script setup lang="ts">
const router = useRouter()
const p = defineProps<{
  back?: string
}>()

const goBack = () => {
  if (p.back) {
    router.push(p.back)
  } else {
    // 可选：默认返回首页，或执行其它逻辑
    router.back()
  }
}
</script>

<template>
    <div class="absolute top-4 left-4 z-20 text-#93806b cursor-pointer">
        <UIcon name="i-ic-baseline-arrow-back-ios" class="absolute left-1 top-1 size-5" @click="goBack" />
    </div>
</template>
